<script language=javascript>
function toggle_db() {
	if (use_wpdp.checked == true) {
		document.forms['myform'].sc_db_host.disabled = true
		document.forms['myform'].sc_db_user.disabled = true
		document.forms['myform'].sc_db_name.disabled = true
		document.forms['myform'].sc_db_pass.disabled = true
	} else {
		document.forms['myform'].sc_db_host.disabled = false
		document.forms['myform'].sc_db_user.disabled = false
		document.forms['myform'].sc_db_name.disabled = false
		document.forms['myform'].sc_db_pass.disabled = false
	}
	return 1;
}
</script>
<form method=post name=myform>
<input type=hidden name=op value=step3>
<input type=hidden name=fal value=wp2>
<input type=hidden name=db_host value="{DB_HOST}">
<input type=hidden name=db_name value="{DB_NAME}">
<input type=hidden name=db_user value="{DB_USER}">
<input type=hidden name=db_pass value="{DB_PASS}">
<input type=hidden name=wp2_prefix value="{WP2_PREFIX}">
<input type=hidden name=wp2_path value="{WP2_PATH}">
<p>
<!-- BEGIN error -->
{error.MESSAGE}
<!-- END error -->
</p>
<table width=80% align=center>
<tr><td>WordPress URL:</td><td><input type=text name=wp2_url value="{WP2_URL}"></td></tr>
<tr><td>WordPress Title:</td><td><input type=text name=wp2_title value="{WP2_TITLE}"></td></tr>
<tr><td colspan=2 align=center>Use the same database as WordPress? <input type=checkbox id=use_wpdp name=use_wpdp value="on" checked onChange="toggle_db();"></td></tr>
<tr><td>Database Host:</td><td><input type=text name=sc_db_host value="{DB_HOST}" disabled></td></tr>
<tr><td>Database Name:</td><td><input type=text name=sc_db_name value="{DB_NAME}" disabled></td></tr>
<tr><td>Database User:</td><td><input type=text name=sc_db_user value="{DB_USER}" disabled></td></tr>
<tr><td>Database Password:</td><td><input type=password name=sc_db_pass value="{DB_PASS}" disabled></td></tr>
<tr><td>StormChat Database Prefix:</td><td><input type=text name=sc_db_prefix value="chat_"></td></tr>
<tr><td colspan=2 align=center><input type=submit value="Proceed to the next step -->"></td></tr>
</table>
